import request from "@/utils/request";

/**
 * 根据ID获取项目信息
 * @returns {AxiosPromise}
 */
export function getGrantInfoById(data) {
  return request({
    url: '/wx/getGrantInfoById',
    method: 'post',
    data : data
  })
}

/**
 * 根据ID获取派出单位信息
 * @returns {AxiosPromise}
 */
export function getCompanyInfoById(data) {
  return request({
    url: '/wx/getCompanyInfoById',
    method: 'post',
    data : data
  })
}
export function getPhoneCode(phone){
  const data = {phone}
  return request({
    url: '/wx/getPhoneCode?phone='+phone,
    method: 'get',
    data: data
  })

}
export function companyUserRegister(data){
  return request({
    url: '/wx/companyUserRegister',
    method: 'post',
    data: data
  })

}
